# Tanım: Açık kaynak multimedya çerçevesi
# URL: http://www.mltframework.org
# Paketçi: alihan-ozturk28@hotmail.com
# Gerekler: ladspa frei0r-plugins libdv sdl-image libsamplerate sox ffmpeg vid-stab qt5 jack libexif swig movit eigen3 
# Grup: medya

isim=mlt
surum=6.2.0
devir=1

kaynak=(https://github.com/mltframework/mlt/archive/v$surum.tar.gz)

derle() {
  cd $isim-$surum
  ./configure --prefix=/usr        \
	--avformat-swscale         \
	--enable-gpl --enable-gpl3 \
	--qt-libdir=/usr/lib --qt-includedir=/usr/include/qt
  make
  make DESTDIR=$PKG install

  # mlt python bindings
  cd src/swig/python
  ./build
  mkdir -p $PKG/usr/lib/python2.7/
  install -m755 mlt.py $PKG/usr/lib/python2.7/
  install -m755 _mlt.so $PKG/usr/lib/python2.7/
  install -m755 mlt_wrap.o $PKG/usr/lib/python2.7/
}
